using System;
using System.Collections.Generic;
using System.Text;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace Framework.Library
{
    public class BasePage : System.Web.UI.Page
    {
         //protected override void Render(System.Web.UI.HtmlTextWriter writer)
         //{
         //    System.IO.StringWriter stringWriter = new System.IO.StringWriter();
         //    HtmlTextWriter htmlWriter = new HtmlTextWriter(stringWriter);
         //    this.Render(htmlWriter);
         //    string html = stringWriter.ToString();
         //    int StartPoint = html.IndexOf("<input type=\"hidden\" name=\"__viewstate\"");
         //    if (StartPoint >= 0)
         //    {
         //        int EndPoint = html.IndexOf("/>", StartPoint) + 2;
         //        string viewstateInput = html.Substring(StartPoint, EndPoint - StartPoint);
         //        html = html.Remove(StartPoint, EndPoint - StartPoint);
         //        int FormEndStart = html.IndexOf("</form>") - 1;
         //        if (FormEndStart >= 0)
         //        {
         //            html = html.Insert(FormEndStart, viewstateInput);
         //        }
         //    }
         //    writer.Write(html);
         //}
    }
}
